package com.suian.client;

import com.suian.dao.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("order-service")
public interface OrderClient {

    @GetMapping("/order/{orderId}")
    OrderInfo getOrderById(@PathVariable("orderId") Integer orderId);
}
